package com.itxiuyixiu.tools.qiniuyun;

import org.springframework.context.annotation.Bean;
import org.springframework.core.annotation.Order;

/**
 * @author 黄磊
 * @date 2020/4/30
 */
@Order(2)
public class QiniuyunConfig {
    private final QiniuyunProperties properties;

    public QiniuyunConfig(QiniuyunProperties properties) {
        this.properties = properties;
    }

    @Bean
    public QiniuyunTemplateService qiniuyunTemplateService() {
        return new QiniuyunTemplateServiceImpl(properties);
    }
}
